package com.yunheone.control;

import com.yunheone.mode.User;
import com.yunheone.view.Student.PassWord;

/**
 * 修改当前用户密码
 */
public class Passwcontrol {
    /**
     * 用get读取当前用户信息，用set修改密码
     */
    public static void changePassw(){
        String password= PassWord.password ();//修改后的密码
        User countUser = Logincontrol.getCountUser ();//当前用户的信息，用get读取
        Logincontrol.setCountUser ( countUser );//用set修改密码
          countUser.setPassWord ( password );
        System.out.println ("密码修改成功！");
        Teachercontrol.getInstance ().Rount ();//返回老师管理首页
    }
}
